<?php
// set the cookies
setcookie ( "cookie[three]", "cookiethree" );
setcookie ( "cookie[two]", "cookietwo" );
setcookie ( "cookie[one]", "cookieone" );

// after the page reloads, print them out
if (isset ( $_COOKIE ['cookie'] )) {
	foreach ( $_COOKIE ['cookie'] as $name => $value ) {
		echo "$name : $value <br />\n";
	}
}
?> 